<template>
    <div>
        <el-dialog title="搜索" :visible.sync="dialogFormVisible">
            <el-form>
                <el-form-item label="产品名称" :label-width="formLabelWidth">
                    <el-input v-model="like" autocomplete="off"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="dialogFormVisible = false">取 消</el-button>
                <el-button type="primary" @click="searchBtn">确 定</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
    export default {
        name: "search-component.vue",
        data() {
            return {
                formLabelWidth: '100px',
                like: '',
                dialogFormVisible: false
            }
        },
        methods: {
            searchBtn() {
                this.$emit('searchFun', this.like)
                this.dialogFormVisible = false
            }
        }
    }
</script>

<style scoped>

</style>
